package com.shenyutao.customimagecrop

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.shenyutao.customimagecrop.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
    private lateinit var binging: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binging = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binging.root)
        initListener()
    }

    private fun initListener() {
        binging.button.setOnClickListener {
            binging.customView.rotateBitmapWithScale()
        }
    }
}